package com.ydlclass.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author it楠老师
 * @createTime 2023-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YrpcMessage implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 消息类型
     */
    private byte messageType;

    /**
     * 压缩类型
     */
    private byte compressTye;

    /**
     * 序列化类型
     */
    private byte serializeType;

    /**
     * 请求id
     */
    private long requestId;


    /**
     * payload数据
     */
    private Object payload;

}
